export default {
    state:{
        tabs:{
            music:false,
            my:true,
            video:false,
        },
        cursong:"",
        songshow:false
    },
    mutations:{  
        //  当前tab
        settabs(state,tab){
            for(let i in state.tabs){
                state.tabs[i] = false
            }
            state.tabs[tab] = true  
        },
        //  当前播放的歌曲
        setsong(state,data){
            state.cursong = data
        },
        setsongshow(state,data){
            state.songshow = data
        }
    },

}
